<?php

    $scopedVars = array(
        'scopedVar1' => 'This is the first scoped variable.',
        'scopedVar2' => 'This is the second scoped variable.'
    );
    
    // This will render src/snippets/example.php with scoped variables. The 
    // scoped variables are not accessible from the view file (i.e. this file)
    // nor from any layout file.
    $this->renderSnippet('example', $scopedVars);